package com.sinevil.tcpTrans.utils.fileTrans.entity;

import java.nio.channels.SocketChannel;

/**
 * @Classname FileTask
 * @Description TODO
 * @Version 1.0.0
 * @Date 2025/1/21 16:01
 * @Created by sinevil
 */
public class FileTask {
    /**
     * 任务唯一标签
     */
    public String uid;
    /**
     * 套接字对象
     */
    public final SocketChannel socketChannel;

    public FileTask(SocketChannel socketChannel) {
        this.socketChannel = socketChannel;
    }

    public FileTask(SocketChannel socketChannel, String uid) {
        this.socketChannel = socketChannel;
        this.uid = uid;
    }

    public SocketChannel getSocketChannel() {
        return socketChannel;
    }

}